<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../src/string/index.js"></script>
</head>
<body>
  <script>
    let str = 'coderbin'
    let str2 = 'lol'
    let str3 = '自定义工具库函数'

    // 测试
    // 测试字符串翻转
    console.log(reverseString(str));

    // 测试判断是否是回文
    console.log(palindrome(str2));

    // 测试字符串截断
    console.log(truncate(str3, 3));
    
  </script>
</body>
</html>